import Vue from 'vue'
import Vuex from 'vuex'
import User from './User'
import Register from './register'
import Login from './Login'
import Friends from './friends'
import Chat from './chat'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    user: User,
    login: Login,
    register: Register,
    friends: Friends,
    chat: Chat,
  }
})

export default store;
